package cn.gson.crmdemo.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.crmdemo.model.mapper.CaiGouBaoBiaoMapper;

@Service
@Transactional(rollbackFor=Exception.class)

public class CaiGouBaoBiaoService {

	@Autowired
	CaiGouBaoBiaoMapper cg;
	
	public JSONArray selectAlltt() {
		return cg.selectcaigou();
		
	}
	
	public JSONArray select() {
		return cg.selectcaigouxq();
	}
		
}
